package libs.yzx.zaza.za;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.os.RemoteException;
import android.support.annotation.Nullable;

import java.util.List;

/**
 * Created by Administrator on 2016/8/6
 */
public class RemoteService extends Service {

    private IBinder myBinder = new IMyAidlInterface.Stub() {
        @Override
        public void fillPerson(Person p) throws RemoteException {
            p.setName("fuck");
        }

        @Override
        public String getString(int i, List<String> o) throws RemoteException {
            o.add("fuck");
            return i + "";
        }
    };

    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return myBinder;
    }

}
